}
}
break;
- case 7:
- wpt_tmp->icon_descr = gbfgetpstr(file_in);
- break;
+ case 7: {
+ char* id = gbfgetpstr(file_in);
+ wpt_tmp->icon_descr = id;
+ if (id) {
+ xfree(id);
+ }
+ }
+ break;
case 8: /* NULL Terminated (vs. pascal) descr */
wpt_tmp->notes = gbfgetcstr(file_in);
break;
"#\n"
"# (c) 2006, Robert Lipe, based on sample files by Krzysztof Wojtas\n"
"# Reference info: http://www.seeyou.ws/thankyou.php?fname=cup_format.pdf\n"
+ "# Reference info: http://download.naviter.com/docs/cup_format.pdf\n"
+ "# Reference info: http://www.keepitsoaring.com/LKSC/Downloads/cup_format.pdf\n"
"#\n"
"DESCRIPTION See You flight analysis data\n"
"EPILOGUE -----Related Tasks-----\n"
- "IFIELD SHORTNAME,\"\", \"\"%s\"\"\n"
+ "IFIELD IGNORE,\"\", \"\"%s\"\"\n"
"IFIELD SHORTNAME,\"\", \"%s\"\n"
"IFIELD CONSTANT,\"\", \"\"\n"
"IFIELD LAT_DDMMDIR, \"%f\", \"%08.3f\", \"absolute\"\n"
/* route name -- mapsend really seems to want something here.. */
if (r.isEmpty()) {
- rname = xstrdup("Route");
+ rname = "Route";
} else {
rname = rte->rte_name;
}
}
-static QString
+static char*
osm_feature_symbol(const int ikey, const char* value)
{
char* result;
}
wpt->shortname = xstrdup(str);
} else if ((ikey = osm_feature_ikey(key)) >= 0) {
- wpt->icon_descr = osm_feature_symbol(ikey, value);
+ char* id = osm_feature_symbol(ikey, value);
+ wpt->icon_descr = id;
+ if (id) {
+ xfree(id);
+ }
} else if (strcmp(key, "note") == 0) {
if (wpt->notes) {
char* tmp;
if (!cartoexploreur) {
gbfprintf(file_out, "\n\nR %s\n", name);
}
+ xfree(name);
gbfprintf(file_out, "\n"
"H IDNT LATITUDE LONGITUDE DATE TIME ALT DESCRIPTION PROXIMITY SYMBOL ;waypts\n");
}
enum_route_hdr_cb(const route_head* rte)
{
is_fatal(rte->rte_waypt_ct > 50,
- MYNAME ": Routes with more than 50 points are not supported by Waymarine!");
+ MYNAME ": Routes with more than 50 points are not supported by Raymarine!");
}
static short_handle
snprintf(buf + 2, sizeof(buf) - 2, "%03d ", rte_num);
}
snprintf(buf + 6, sizeof(buf) - 6, "%03d %-9s ", wpt_num, name);
+
+ xfree(name);
}
#
# (c) 2006, Robert Lipe, based on sample files by Krzysztof Wojtas
# Reference info: http://www.seeyou.ws/thankyou.php?fname=cup_format.pdf
+# Reference info: http://download.naviter.com/docs/cup_format.pdf
+# Reference info: http://www.keepitsoaring.com/LKSC/Downloads/cup_format.pdf
#
DESCRIPTION See You flight analysis data
EPILOGUE -----Related Tasks-----
-IFIELD SHORTNAME,"", ""%s""
+IFIELD IGNORE,"", ""%s""
IFIELD SHORTNAME,"", "%s"
IFIELD CONSTANT,"", ""
IFIELD LAT_DDMMDIR, "%f", "%08.3f", "absolute"